package com.eight.login.utils;

import org.springframework.stereotype.Component;

import java.util.concurrent.ThreadLocalRandom;

/**
 * @program: qy8-education1
 * @description:
 * @author: 张亚祥
 * @create: 2023-06-01 10:32
 **/
@Component
public class Demo {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(random4());
        }
    }

    private static String random4() {
        return String.format("%06d", ThreadLocalRandom.current().nextInt(1000000));
    }
}
